﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ClaimCall.aspx.cs" Inherits="carinsurance_ClaimCall" MasterPageFile="~/MasterPage.master" MaintainScrollPositionOnPostback="true" EnableEventValidation="false" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="Server">
    <link rel="stylesheet" type="text/css" href="../OLD/css/styles2.css" title="Contemporary" />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cphPageTitle" runat="Server">
    <table cellpadding="0" cellspacing="0" border="0">
    <tr>
    <td style="width:800px"><h1><asp:Label runat="server"
            Text="<%$Resources:General,Claims%>" ID="lblClaims"></asp:Label></h1></td>
    <td><div style="float:right">
            <asp:Button runat="server" ID="btnBack" Text="BACK" Visible="true" OnClick="btnBack_Click"
                    Width="121px" Height="30px" Font-Bold="true" ValidationGroup="none" CausesValidation="false"
                    OnClientClick="return BackConfirm();" CssClass="blueB ml10" />
            </div></td>
    </tr>
    </table>
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
     <div class="toggle">
        <div class="title opened" id="opened1">
            <img src="../../images/icons/dark/imagesList.png" alt="" class="titleIcon" />
            <h6>
                <asp:Label ID="lblCaption" runat="server" Text="<%$Resources:CarInsurance,CarInsuranceDetails%>" />
            </h6>
        </div>
       
        <asp:Panel ID="pnlQuotes" runat="server" Visible="true">
            <div class="widgets">
                <div class="form">
                    <fieldset class="step">
                        <asp:UpdatePanel ID="upnlDetails" UpdateMode="Conditional" runat="server">
                            <ContentTemplate>
                                <div>
                                    <asp:ValidationSummary HeaderText="Opps..,please complete all(*) fields." runat="server"
                                        ValidationGroup="newleads" ID="vsNewLeads" ShowMessageBox="false" ShowSummary="true"
                                        Font-Bold="true" />
                                    <asp:Label runat="server" ID="lblLoadMessage" Font-Bold="true" ForeColor="Red" Text="" />
                                    <div class="clear">
                                    </div>
                                </div>
                                <div class="form">
                                    <div id="divOne" class="oneTwo">
                                        <div class="toggle">
                                            <table cellpadding="0" cellspacing="0" width="100%" border="0" class="sTable">
                                                <tr>
                                                    <td width="200" height="25">
                                                        <asp:Label runat="server" ID="Label17" Text="<%$Resources:General,CustomerName%>" />
                                                    </td>
                                                    <td>
                                                        :
                                                    </td>
                                                    <td>
                                                        <asp:TextBox ID="txtCustomerName" runat="server" MaxLength="50" Width="250px" />
                                                        <asp:RequiredFieldValidator runat="server" ID="rfvCustomerName" ControlToValidate="txtCustomerName"
                                                            ErrorMessage="" Text="*" ValidationGroup="newleads"></asp:RequiredFieldValidator>
                                                        <asp:RegularExpressionValidator ID="revCustomerName" runat="server" ControlToValidate="txtCustomerName"
                                                            ValidationExpression="^([\u0000-\uDFFF']{1,50})$|^([a-zA-Z''-'\s]{1,50})$" ValidationGroup="newleads"
                                                            ErrorMessage="" Text="*"></asp:RegularExpressionValidator>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td width="200" height="25">
                                                        <asp:Label runat="server" ID="Label19" Text="<%$Resources:CarInsurance,EmailAddress%>" />
                                                    </td>
                                                    <td>
                                                        :
                                                    </td>
                                                    <td>
                                                        <asp:TextBox ID="txtEmailAddress" runat="server" MaxLength="75" Width="250px" ReadOnly="false" />
                                                        <asp:RequiredFieldValidator ID="rfvEmailAddress" runat="server" Text="*" ValidationGroup="newleads"
                                                            ErrorMessage="" ControlToValidate="txtEmailAddress" Display="Dynamic"></asp:RequiredFieldValidator>
                                                        <asp:RegularExpressionValidator ID="revEmailAddress" Text="<%$Resources:General,Notvalid%>"
                                                            runat="server" ValidationGroup="newleads" ErrorMessage="" ControlToValidate="txtEmailAddress"
                                                            ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" Display="Dynamic"></asp:RegularExpressionValidator>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td width="200" height="25">
                                                        <asp:Label runat="server" ID="Label20" Text="<%$Resources:CarInsurance,MobileNo%>" />
                                                    </td>
                                                    <td>
                                                        :
                                                    </td>
                                                    <td>
                                                        <asp:TextBox ID="txtMobileNo" runat="server" MaxLength="30" Width="150px" />
                                                        <asp:RequiredFieldValidator ID="rfvMobileNo" ControlToValidate="txtMobileNo" ErrorMessage=""
                                                            ValidationGroup="newleads" runat="server" Text="*" Display="Dynamic"></asp:RequiredFieldValidator>
                                                        <asp:RegularExpressionValidator ID="revMobileNo" runat="server" ErrorMessage="" ValidationGroup="newleads"
                                                            ValidationExpression="[0-9]{10}" ControlToValidate="txtMobileNo" Text="<%$Resources:General,Notvalid%>"
                                                            Display="Dynamic"></asp:RegularExpressionValidator>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td width="200" height="25">
                                                        <asp:Label runat="server" ID="Label2" Text="<%$Resources:Proposal,CarYear%>" />
                                                    </td>
                                                    <td>
                                                        :
                                                    </td>
                                                    <td>
                                                        <asp:DropDownList ID="ddlCarYear" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlCarYear_SelectedIndexChanged">
                                                        </asp:DropDownList>
                                                        <asp:RequiredFieldValidator runat="server" ID="rfvCarYear" ControlToValidate="ddlCarYear"
                                                            ErrorMessage="" Text="*" InitialValue="-1" ValidationGroup="newleads" Display="Dynamic"></asp:RequiredFieldValidator>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td width="200" height="25">
                                                        <asp:Label runat="server" ID="Label3" Text="<%$Resources:CarInsurance,CarMake%>" />
                                                    </td>
                                                    <td>
                                                        :
                                                    </td>
                                                    <td>
                                                        <asp:DropDownList runat="server" ID="ddlCarMake" Width="250px" AutoPostBack="true"
                                                            OnSelectedIndexChanged="ddlCarMake_SelectedIndexChanged">
                                                            <asp:ListItem Value="-1" Text="<%$ Resources:General,Select%>"></asp:ListItem>
                                                        </asp:DropDownList>
                                                        <asp:RequiredFieldValidator runat="server" ID="rfvCarMake" ControlToValidate="ddlCarMake"
                                                            ErrorMessage="" Text="*" InitialValue="-1" ValidationGroup="newleads" Display="Dynamic"></asp:RequiredFieldValidator>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td width="200" height="25">
                                                        <asp:Label runat="server" ID="Label27" Text="<%$Resources:Proposal,CarModel%>" />
                                                    </td>
                                                    <td>
                                                        :
                                                    </td>
                                                    <td>
                                                        <asp:DropDownList runat="server" ID="ddlModelBodyCCDoor" Width="250px" AutoPostBack="True"
                                                            OnSelectedIndexChanged="ddlModelBodyCCDoor_SelectedIndexChanged">
                                                            <asp:ListItem Value="-1" Text="<%$ Resources:General,Select%>"></asp:ListItem>
                                                        </asp:DropDownList>
                                                        <asp:RequiredFieldValidator runat="server" ID="rfvModelBodyCCDoor" ControlToValidate="ddlModelBodyCCDoor"
                                                            ErrorMessage="" Text="*" InitialValue="-1" ValidationGroup="newleads" Display="Dynamic"></asp:RequiredFieldValidator>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td width="200" height="25">
                                                        <asp:Label runat="server" ID="Label15" Text="<%$Resources:Proposal,CurrentInsurer%>" />
                                                    </td>
                                                    <td>
                                                        :
                                                    </td>
                                                    <td>
                                                        <asp:DropDownList ID="ddlCurrentInsurer" runat="server" Width="250px" AutoPostBack="true"
                                                            onselectedindexchanged="ddlCurrentInsurer_SelectedIndexChanged">
                                                        </asp:DropDownList>
                                                        <asp:RequiredFieldValidator runat="server" ID="rfvCurrentInsurer" ControlToValidate="ddlCurrentInsurer"
                                                            ErrorMessage="" Text="*" InitialValue="-1" ValidationGroup="newleads" Display="Dynamic"></asp:RequiredFieldValidator>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td width="200" height="25">
                                                        <asp:Label runat="server" ID="Label14" Text="<%$Resources:CarInsurance,ExpiryMonth%>" />
                                                    </td>
                                                    <td>
                                                        :
                                                    </td>
                                                    <td>
                                                        <asp:DropDownList ID="ddlExpiryMonth" runat="server">
                                                        </asp:DropDownList>
                                                        <asp:RequiredFieldValidator runat="server" ID="rfvExpiryMonth" ControlToValidate="ddlExpiryMonth"
                                                            ErrorMessage="" Text="*" InitialValue="-1" ValidationGroup="newleads" Display="Dynamic"></asp:RequiredFieldValidator>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                    </td>
                                                    <td>
                                                    </td>
                                                    <td>
                                                        <asp:Button ID="btnSubmit" runat="server" Width="100px" OnClick="btnSubmit_Click"
                                                            ValidationGroup="newleads" CssClass="blueB ml10" Text="<%$Resources:General,Submit%>" />
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td height="30" colspan="3">
                                                        <asp:Label runat="server" ID="lblMessage" Text="" Font-Bold="true" ForeColor="Red" />
                                                        <div style="display: none">
                                                            <asp:Label runat="server" ID="lblSumInsured" Text="0" />
                                                            <asp:TextBox ID="txtSumInsured" runat="server" />
                                                            <asp:TextBox ID="txtNewSumInsured" runat="server" />
                                                            <asp:TextBox ID="txtGroupNo" Text="-1" runat="server" />
                                                            <asp:Label runat="server" ID="lblModelDesc" />
                                                        </div>
                                                    </td>
                                                </tr>
                                            </table>
                                        </div>
                                    </div>
                                    <div id="divTwo" class="oneTwo">
                                        <div class="toggle">
                                            <table cellpadding="0" cellspacing="0" width="100%" border="0" class="sTable">
                                                <tr>
                                                    <td width="200" height="25">
                                                        <asp:Label runat="server" ID="Label24" Text="<%$Resources:Proposal,CurrentInsurer%>" />
                                                    </td>
                                                    <td>
                                                        :
                                                    </td>
                                                    <td>
                                                       <asp:Label runat="server" ID="lblClaimInsurerName"></asp:Label>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td width="200" height="25">
                                                        <asp:Label runat="server" ID="Label4" Text="<%$Resources:CarInsurance,ClaimHotline%>" />
                                                    </td>
                                                    <td>
                                                        :
                                                    </td>
                                                    <td>
                                                       <asp:Label runat="server" ID="lblClaimHotline"></asp:Label>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td width="200" height="25">
                                                        <asp:Label runat="server" ID="Label16" Text="<%$Resources:CarInsurance,Website%>" />
                                                    </td>
                                                    <td>
                                                        :
                                                    </td>
                                                    <td>
                                                       <asp:HyperLink runat="server" Target="_blank" ID="linkWebsite"></asp:HyperLink>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td width="200" height="25">
                                                        <asp:Label runat="server" ID="Label7" Text="<%$Resources:CarInsurance,GarageLink%>" />
                                                    </td>
                                                    <td>
                                                        :
                                                    </td>
                                                    <td>
                                                        <asp:HyperLink runat="server" Target="_blank" ID="linkGarageLink"></asp:HyperLink>
                                                    </td>
                                                </tr>
                                            </table>
                                        </div>
                                    </div>
                                </div>
                                <div style="display: none;">
                                    <asp:TextBox runat="server" ReadOnly="true" ID="txtCallMeId"></asp:TextBox>
                                    <asp:TextBox runat="server" ReadOnly="true" ID="txtCallTypeId"></asp:TextBox>
                                    <asp:TextBox runat="server" ReadOnly="true" ID="txtAgentLeadId"></asp:TextBox>
                                    <asp:TextBox runat="server" ReadOnly="true" ID="txtCallMeEmail"></asp:TextBox>
                                    <asp:TextBox runat="server" ReadOnly="true" ID="txtCallMeFullName"></asp:TextBox>
                                    <asp:TextBox runat="server" ReadOnly="true" ID="txtCallMeMobileNo"></asp:TextBox>
                                    <asp:TextBox runat="server" ReadOnly="true" ID="txtCECarPolicyId"></asp:TextBox>
                                    <asp:TextBox runat="server" ReadOnly="true" ID="txtCXCRMId"></asp:TextBox>
                                    <asp:TextBox runat="server" ReadOnly="true" ID="txtAgentId"></asp:TextBox>
                                    <asp:TextBox runat="server" ReadOnly="true" ID="txtInsurerID"></asp:TextBox>
                                    <asp:Label ID="lblRedirectCarId" runat="server"></asp:Label>
                                    <asp:Label ID="lblRedirectAgentLeadId" runat="server"></asp:Label>
                                    <asp:Label ID="lblRedirectCustomerId" runat="server"></asp:Label>
                                    <asp:Label ID="lblRedirectCallTypeId" runat="server"></asp:Label>
                                    <asp:Label runat="server" ID="lblCarVehicleType" Text="" Visible="false" />
                                    <asp:TextBox runat="server" ReadOnly="true" ID="txtCustomerId"></asp:TextBox>
                                </div>
                                <div id="divHiddenMonths" style="display: none;">
                                    <input runat="server" id="lblJan" type="hidden" value="<%$ Resources:MonthResource, January%>" />
                                    <input runat="server" id="lblFeb" type="hidden" value="<%$ Resources:MonthResource, February%>" />
                                    <input runat="server" id="lblMar" type="hidden" value="<%$ Resources:MonthResource, March%>" />
                                    <input runat="server" id="lblApr" type="hidden" value="<%$ Resources:MonthResource, April%>" />
                                    <input runat="server" id="lblMay" type="hidden" value="<%$ Resources:MonthResource, May%>" />
                                    <input runat="server" id="lblJun" type="hidden" value="<%$ Resources:MonthResource, June%>" />
                                    <input runat="server" id="lblJul" type="hidden" value="<%$ Resources:MonthResource, July%>" />
                                    <input runat="server" id="lblAug" type="hidden" value="<%$ Resources:MonthResource, August%>" />
                                    <input runat="server" id="lblSep" type="hidden" value="<%$ Resources:MonthResource, September%>" />
                                    <input runat="server" id="lblOct" type="hidden" value="<%$ Resources:MonthResource, October%>" />
                                    <input runat="server" id="lblNov" type="hidden" value="<%$ Resources:MonthResource, November%>" />
                                    <input runat="server" id="lblDec" type="hidden" value="<%$ Resources:MonthResource, December%>" />
                                    <input runat="server" id="lblCultureInfo" type="hidden" />
                                </div>
                            </ContentTemplate>
                        </asp:UpdatePanel>
                    </fieldset>
                </div>
            </div>
        </asp:Panel>
    </div>
    
    <script type="text/javascript">
        function BackConfirm() {
            var _retVal = false;

            _retVal = confirm('<%=GetGlobalResourceObject("General", "ConfirmtoGoBack")%>');
            return _retVal;
        }
    </script>
    
</asp:Content>